package com.jyxd.web.util;

import com.jyxd.web.hiscz.service.HisDictionaryService;
import com.jyxd.web.service.user.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

/**
 * 项目启动后直接执行下方run方法
 **/
@Component
public class JYXDRunnerImpl implements ApplicationRunner {

    @Autowired
    private HisDictionaryService hisDictionaryService;

    @Autowired
    private UserService userService;


    @Override
    public void run(ApplicationArguments args) throws Exception {
      /*  Map<String, Object> selectMap = new HashMap<String,Object>();
        selectMap.put("userTypeCode", "护士");
        selectMap.put("deptCode", "25");
        List<Map<String, Object>> nurseList = userService.getNurseList(selectMap);
        hisDictionaryService.setNurseList(nurseList);
        System.out.println("通过实现ApplicationRunner接口，在spring boot项目启动后打印参数");*/
    }
}